package com.patterns.java.facade;

/**
 * 形状创造者
 *
 * @author 三多
 * @Time 2021/10/15
 */
public class ShapeMaker {
    Shape circle;
    Shape rectangle;
    Shape square;

    public ShapeMaker() {
        this.circle = new Circle();
        this.rectangle = new Rectangle();
        this.square = new Square();
    }

    public void drawCircle() {
        circle.draw();
    }

    public void drawRectangle() {
        rectangle.draw();
    }

    public void drawSquare() {
        square.draw();
    }

}
